package com.spj;

import com.spj.service.seviceImpl.ServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author :spj
 * @description:
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("configContext.xml");
        ServiceImpl service=applicationContext.getBean("service", ServiceImpl.class);
        service.regist();
        service.log();
        service.logOut();
    }
}
